.home-wrapper {
  display: flex;
  flex-direction: row;
  flex: 1;
  /* height: calc(100vh - 50px); */
  height: 100%;
}

.widgets-content {
  flex: 1;
  /* overflow: auto; */
  /* overflow-x: hidden; */
  padding: 20px;
}

.widgets-top {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widgets-top-title {
  font-size: 18px;
  font-weight: bold;
}

.widgets {
  transform-origin: top left;
  transition: transform 0.15s;
}

.draggable-box {
  height: 100%;
  box-sizing: border-box;
  /* min-height: 100px; */
  position: relative;
}

.widgets-wrapper .empty-txt {
  font-size: 16px;
}

.custom .widgets-wrapper {
  margin-right: -360px;
}

.custom .widgets-wrapper .l-col {
  padding-bottom: 15px;
}

.custom .widgets-wrapper .empty-widgets {
  display: none;
}

.custom .widgets-wrapper .draggable-box {
  border: 1px dashed #79bbff;
  padding: 15px;
}

.custom .widgets-wrapper .draggable-box.active {
  border: 2px dashed #067ef6;
}

.custom .add-view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: right;
  margin-bottom: 12px;
}

.custom .add-view .add{
  border-radius: 40px;
  border-color: #409eff;
  background-color: #409eff;
  color: #ffffff;
}

.custom .add-view .add:hover {
  background-color: #79bbff;
  border-color: #79bbff;
  color: #ffffff;
}

.custom .widgets-item {
  position: relative;
  margin-bottom: 15px;
}

.customize-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 102;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e7ed;
  background: rgba(255, 255, 255, 0.7);
}
.customize-overlay label {
  background: #409eff;
  color: #fff;
  height: 40px;
  padding: 0 30px;
  border-radius: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.customize-overlay label i {
  margin-right: 15px;
  font-size: 24px;
}
.customize-overlay .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  border-color: #fab6b6;
  background-color: #fef0f0;
  color: #f56c6c;
  height: 24px;
  padding: 5px 11px;
  border-radius: calc(4px - 1px);
  font-size: 12px;
}

.customize-overlay .btn-close:hover {
  background: #f56c6c;
  color: #ffffff;
  border-color: #f56c6c;
}

.widgets-aside {
  width: 360px;
  height: calc(100vh - 50px);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.widgets-aside-header {
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  padding: 13px 15px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widgets-aside-title {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  i {
    margin-right: 10px;
    font-size: 18px;
  }
}

.widgets-aside-close {
  font-size: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

/* .widgets-aside-close:hover {
  background: rgba(180, 180, 180, 0.1);
} */

.select-layout {
  width: 100%;
  display: flex;
}

.select-layout-item {
  width: 60px;
  height: 60px;
  border: 2px solid #e4e7ed;
  padding: 5px;
  cursor: pointer;
  margin-right: 15px;
}

.select-layout-item span {
  display: block;
  background: #e4e7ed;
  height: 46px;
}

.select-layout-item.item2 span {
  height: 30px;
}
.select-layout-item.item2 .l-col:nth-child(1) span {
  height: 14px;
  margin-bottom: 2px;
}

.select-layout-item.item3 span {
  height: 14px;
}

.select-layout-item.item3 .l-col:nth-child(-n+4) span {
  margin-bottom: 2px;
}

.select-layout-item.item3 .l-col:nth-child(5) span {
  margin-bottom: 2px;
}

.select-layout-item.item4 span {
  height: 14px;
}

.select-layout-item.item4 .l-col:nth-child(1) span {
  margin-bottom: 2px;
}

.select-layout-item.item4 .l-col:nth-child(2) span {
  margin-bottom: 2px;
}


.select-layout-item:hover {
  border-color: #409eff;
}
.select-layout-item.active {
  border-color: #409eff;
}
.select-layout-item.active span {
  background: #409eff;
}

.widgets-list {
  flex: 1;
  overflow: auto;
  box-sizing: border-box;
}

.widgets-list .empty{
  width: 100%;
  margin-top: 30px;
  text-align: center;
}

.widgets-list-item {
  display: flex;
  flex-direction: row;
  padding: 15px;
  align-items: center;
}

.widgets-aside-footer {
  background: #fff;
  border-top: 1px solid #e4e7ed;
  padding: 13px 15px;
  height: 51px;
}

/* .widgets-list-item .item-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 15px;
  color: #6a8bad;
} */

.widgets-list-item .item-info {
  flex: 1;
}

.widgets-list-item .item-info h2 {
  font-size: 16px;
  font-weight: normal;
  cursor: default;
}

.widgets-list-item .item-info p {
  font-size: 12px;
  color: #999;
  cursor: default;
}

.widgets-list-item:hover {
  background: rgba(180, 180, 180, 0.1);
}

.widgets-list-item .item-actions .add {
  font-size: 12px;
  height: 24px;
  padding: 5px 11px;
  border-radius: calc(4px - 1px);
  border-color: #409eff;
  background-color: #409eff;
  color: #ffffff;
}

.widgets-list-item .item-actions .add img {
  width: 16px;
  height: 16px;
}

.widgets-list-item .item-actions .add:hover {
  background-color: #79bbff;
  color: #ffffff;
  border-color: #79bbff;
}

.widgets-list-item .item-actions .add.disabled {
  background-color: #c8c9cc;
  color: #ffffff;
  border-color: #c8c9cc;
  cursor: not-allowed;
}

@media (max-width: 992px) {
  .custom .widgets {
    transform: scale(1) !important;
  }
  .custom .widgets-wrapper {
    margin-right: 0;
  }

  .custom .widgets-aside {
    width: 100%;
    position: absolute;
    top: 50%;
    right: 0;
    bottom: 0;
  }
}
